#pragma once


// CXComboBox

class CXComboBox : public CComboBox
{
        DECLARE_DYNAMIC(CXComboBox)

    public:
        CXComboBox();
        virtual ~CXComboBox();

        void ResetContent();
        int  AddString(LPCTSTR, DWORD_PTR, COLORREF col = -1);
        void SetColor(int idx, COLORREF col = -1);
        int  Select(DWORD_PTR);

        void SetDropList(bool en_droplist = true);


    protected:
        DECLARE_MESSAGE_MAP()
        void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);
        void MeasureItem(LPMEASUREITEMSTRUCT lp);

        CArray<COLORREF,COLORREF> madw_colors;
        bool      mb_drop_down_only;
        virtual void PreSubclassWindow();

};


